package com.xaaef.jvm;

import sun.misc.Launcher;
import sun.misc.URLClassPath;
import sun.security.util.CurveDB;

import java.net.URL;
import java.security.Provider;

/**
 * <p>
 * </p>
 *
 * @author Wang Chen Chen<932560435@qq.com>
 * @date 2022/2/16 21:06
 */

public class ClassLoaderTest1 {

    public static void main(String[] args) {
        URL[] urLs = Launcher.getBootstrapClassPath().getURLs();
        for (URL urL : urLs) {
            System.out.println(urL);
        }

        ClassLoader classLoader = Provider.class.getClassLoader();
        System.out.println(classLoader);

        System.out.println("*****************************");

        String property = System.clearProperty("java.ext.dirs");
        System.out.println(property);

        System.out.println("*****************************");
        ClassLoader classLoader1 = CurveDB.class.getClassLoader();
        System.out.println(classLoader1);
    }

}
